<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">

  <!-- This is the start (home) page of the application. It just displays
  a message. Not very exciting... improvement is possible. -->
  <h:head>
    <title>SupportIT</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  </h:head>
  
  <ui:include src="/templates/layout.xhtml" />
  
  <h:body>
      <div class="wrapper">
          
          <a href="#signout" style="float:right; color:#ffa52c; margin-top:-27px;
             font-size:16px; font-weight: bold;">Logg ut</a>
             
          <div class="box">
      


	
	<div id="background">
                        
		<h:form id="newsearch">
                    <h:inputText value="#{userlistbean.search}" />   <h:commandButton value="Søk" action="#{userlistbean.searchUsers()}" /> </h:form>
	<div class="tfclear"></div>
	</div>
    

<br /> 

   
    
   
   
            <h:dataTable class="zebra" value="#{userlistbean.users}" var="user">  
                     <h:column>
                         <f:facet name="header">BrukerNr</f:facet>
                         <h:link value=" #{user.id}" outcome="user?studid=#{user.id}" ></h:link>
                    </h:column>   
            
                     <h:column>
                         <f:facet name="header">Navn</f:facet>
                         <h:link value="#{user.name}" outcome="user.xhtml?studid=#{user.id}" ></h:link>
                     </h:column>
            </h:dataTable>
    
    
     

          </div>
              
          
            
            
            
            
               
          
          
          
          
          </div>
          
          
  </h:body>
</html>